/*
NumFormat_char27.cpp This Example demos the iostreams class printing numbers in
decimal, octal, and hexadecimal using iostream manipulators (which
don’t print anything, but change the state of the output stream).

*/

#include <iostream>
using namespace std;

int main() {
    cout << "a number in decimal: "
         << dec << 15 << endl;
    cout << "in oct: " << oct << 15 << endl;
    cout << "in hex: " << hex << 15 << endl;
    cout << "a floating-point number: " 
         << hex << 3.1415926 << endl;
    cout << "non-printing char (escape): "
         << char(27) << endl; 
}///:~
